ninab222 2.2.2
Loading...
Searching...
No Matches
main.c File Reference

NINA-B222 Click Example. More...

#include "board.h"
#include "log.h"
#include "ninab222.h"

Macros

#define MIKROBUS_POSITION_NINAB222   MIKROBUS_1
#define DEVICE_NAME   "NINA-B222 Click"
#define APP_BUFFER_SIZE   500
#define PROCESS_BUFFER_SIZE   200

Functions

void application_init (void)
void application_task (void)
int main (void)

Detailed Description

NINA-B222 Click Example.

Description

This example demonstrates the use of NINA-B222 Click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver and performs the Click default configuration.

Application Task

Reads and processes all incoming data and displays them on the USB UART.

Additional Function

  • static void ninab222_clear_app_buf ( void )
  • static void ninab222_log_app_buf ( void )
  • static err_t ninab222_process ( ninab222_t *ctx )
Note
Author
Nenad Filipovic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   500

◆ DEVICE_NAME

#define DEVICE_NAME   "NINA-B222 Click"

◆ MIKROBUS_POSITION_NINAB222

#define MIKROBUS_POSITION_NINAB222   MIKROBUS_1

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )